﻿using StarcraftTroopers.Abstractions;
using StarcraftTroopers.Troops;
using System;

namespace StarcraftTroopers
{
    class Program
    {
        public static void warScene(IArmyFactory factory)//召唤部队的方法
        {
            factory.createAttackUnit().attack();
            factory.createMedicalUnit().cure();
            factory.createAirUnit().assist();
        }
        static void Main(string[] args)
        {
            warScene(new TvTArmyFactory());
            Console.WriteLine();
            warScene(new TvZArmyFactory());
        }
    }
}
